package cn.strive.eams.fixedassets.pojo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Fixedassets {
    @ApiModelProperty(value ="资产信息id")
    private Long id;
    @ApiModelProperty(value ="资产名称")
    private String assetName;
    @ApiModelProperty(value ="型号编号")
    private String modelNumber;
    @ApiModelProperty(value ="序列号")
    private String serialNumber;
    @ApiModelProperty(value ="购买日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date purchaseDate;
    @ApiModelProperty(value ="购买价格")
    private String purchasePrice;
    @ApiModelProperty(value ="当前状态")
    private String status;
    @ApiModelProperty(value ="最近一次购买日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lastMaintenance;
    @ApiModelProperty(value ="下次维护日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date nextMaintenance;
    @ApiModelProperty(value ="备注")
    private String notes;
    @ApiModelProperty(value ="资产分类")
    private String category;
    @ApiModelProperty(value ="供应商id")
    private Long supplierId;
    @ApiModelProperty(value ="位置id")
    private Long locationId;
    @ApiModelProperty(value ="附件id")
    private Long attachmentId;
    @ApiModelProperty(value ="申请创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty(value ="更新时间，自动更新")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
}